package com.designpatterns.strategypattern.theEntity;

import com.designpatterns.strategypattern.behaviour.behaviourImpl.FlyWithWings;
import com.designpatterns.strategypattern.behaviour.behaviourImpl.QuackGuaGua;

public class MiniDuck extends Duck {
    public MiniDuck() {
        flyBehaviour = new FlyWithWings();
        quackBehaviour = new QuackGuaGua();
    }

    @Override
    public void display() {
        System.out.println("我是迷你鸭");
    }
}
